




using System;
using System.Web;

namespace Hotpot.Infrastructure
{
    public class DummyHttpContext : HttpContextBase
    {
        private readonly Uri requestUrl;
        private readonly Uri hostUrl;

        public DummyHttpContext(Uri requestUrl, Uri hostUrl)
        {
            this.requestUrl = requestUrl;
            this.hostUrl = hostUrl;
        }

        public override HttpRequestBase Request
        {
            get
            {
                return new DummyHttpRequest(requestUrl, hostUrl);
            }
        }

        public override HttpResponseBase Response
        {
            get
            {
                return new DummyHttpResponse();
            }
        }
    }
}